﻿using System;
using System.Collections.Generic;
using System.Drawing.Text;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PictureInterference.Helper.Currency
{
    class FontHelper
    {
        /// <summary>
        /// 挂载字体文件
        /// </summary>
        /// <param name="FilePath"></param>
        /// <returns></returns>
        public static PrivateFontCollection ReadFontFile(string FilePath) {

            PrivateFontCollection fontCollection = new PrivateFontCollection();
            try { fontCollection.AddFontFile(FilePath); } catch (Exception ex) {
                PrintLog.Log(ex);
            }
            return fontCollection;


        }
    }
}
